package edu.sctu.practice.class02.Wangpeng.Test1;

/**
 * Created by wp on 2015/11/18.
 */
public class Square extends Shape {
    @Override
    double getArea() {
        return width*height;
    }

    @Override
    double getPerimeter() {
        return 2*(height+width);
    }

    Square(int x,int y,int width,int height){
        super(x,y,width,height);
    }
}
